﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Microsoft.Win32;

namespace XAMLStylePad.Forms
{
    /// <summary>
    /// Interaction logic for NewProjectForm.xaml
    /// </summary>
    public partial class NewProjectForm : Window
    {
        public NewProjectForm()
        {
            InitializeComponent();
        }

        private void Browse_Click(object sender, RoutedEventArgs e)
        {
            SaveFileDialog dlg = new SaveFileDialog()
            {
                OverwritePrompt = true,
                InitialDirectory = Environment.CurrentDirectory,
            };
            if(dlg.ShowDialog() == true)
            {
                txPath.Text = dlg.FileName;
            }
        }

        private void Ok_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = true;
        }
    }
}
